package com.dodoke.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dodoke.dto.RetailWarehouseDTO;
import com.dodoke.entity.RetailWarehouse;
import com.dodoke.vo.RetailWarehouseAllListVO;
import com.dodoke.vo.RetailWarehouseListVO;

import java.util.List;

/**
 * 仓库信息业务层接口
 */
public interface IRetailWarehouseService extends IService<RetailWarehouse> {

    /**
     * 仓库信息分页查询
     *
     * @param currentPage        当前页码
     * @param pageSize           每页显示条数
     * @param retailWarehouseDTO 模糊查询接收参数
     * @return
     */
    Page<RetailWarehouseListVO> getListByPage(Integer currentPage, Integer pageSize, RetailWarehouseDTO retailWarehouseDTO);

    /**
     * 仓库新增
     *
     * @param retailWarehouse
     * @return
     */
    int saveRetailWarehouse(RetailWarehouse retailWarehouse);

    /**
     * 仓库修改
     *
     * @param retailWarehouse
     * @return
     */
    int editRetailWarehouse(RetailWarehouse retailWarehouse);

    /**
     * 根据id获取仓库信息
     *
     * @param id
     * @return
     */
    RetailWarehouseListVO getById(Long id);

    /**
     * 获取所有仓库列表
     *
     * @return
     */
    List<RetailWarehouseAllListVO> getAllList();
}
